//
//  HomePageUserNewsViewController.m
//  ShowYork
//
//  Created by hxh on 2020/9/29.
//  Copyright © 2020 hxh. All rights reserved.
//

#import "HomeUserInfoDynamicContentViewController.h"
#import "HomePageUserDynamicContentCell.h"
@interface HomeUserInfoDynamicContentViewController ()

@end

@implementation HomeUserInfoDynamicContentViewController


- (void)didUpdateToObject:(id)object{
    _model = object;
}

-(NSInteger)numberOfItems{
    return 1;
}

-(CGSize)sizeForItemAtIndex:(NSInteger)index{
    return CGSizeMake(kScreenW, 86);
}

-(UICollectionViewCell *)cellForItemAtIndex:(NSInteger)index{
    
    HomePageUserDynamicContentCell *cell = [self.collectionContext dequeueReusableCellOfClass:[HomePageUserDynamicContentCell class] forSectionController:self atIndex:index];
    [cell setModel:self.model];
    return cell;
}
- (void)didSelectItemAtIndex:(NSInteger)index{
    if (self.showDtl) {
        self.showDtl(self.model);
    }
}



@end
